<?php
########################################################################################
# Empresa :     Tecnopac Informatica;                                                  #
# Autor:        Deiverson Pacheco;                                                     #
# Data Criação: 10/12/2010;                                                            #
########################################################################################
session_start();
header("Cache-control: private");
include_once("../../includes/session.php");


//Linha para formatação de caracteres com acentuação
include_once('../../includes/classes/class.Conexao.php');
include_once('../../includes/classes/modulo_gerador/class.Dados.php');
$Dados = new Dados(" SELECT * FROM cadastro ");

$Dados->setAliasTabela(array('id' => 'COD ITEM' ));
print_r($Dados->getDadosTabela());
/*
			$cp = new GeraTabela('../../html/modelo/lista_tabela.html');
			//ENVIA A BUSCA POR SQL
			$pagina = @$_GET['pagina'] == '' ? 1 : $_GET['pagina'];
			$cp->url_busca = 'php/estoque/teste.php';
			$cp->url_man = 'php/estoque/teste_man.php';
			$cp->pagina = $pagina;
			$cp->sql = "SELECT id,codigo,pr_custo FROM Produtos ";
			
			$array['id']['alias'] = "Bundoes";
			$array['codigo']['alias'] = "Codigo Interno";
			$array['pr_custo']['alias'] = "Preco Custo";
			
			$cp->setAlias($array);
			
			$array['id']['tipo'] = "CHECKBOX";
			$array['id']['query'] = " SELECT id,nome_razao FROM cadastro";
			
			$array['pr_custo']['tipo'] = "RANGE";
			
			$cp->geraCamposBusca($array);
			
			$cp->criaFiltroSql($_GET);
			$cp->montaTabelaPesquisa();
			
			//MUDAR O RADIO PARA TEXT  E LOOKUP USANDO ALGUMA TEBELA

*/
?>